loop_count = 0

Function tarai(x, y, z)
    loop_count = loop_count + 1
    If y < x Then
        tarai = tarai(tarai(x-1, y, z), tarai(y-1, z, x), tarai(z-1, x, y))
    Else
        tarai = y
    End If
End Function

WScript.Echo tarai(12, 6, 0)
WScript.Echo loop_count
